import arcade

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
def draw_grass():
    arcade.draw_lrtb_rectangle_filled(0, SCREEN_WIDTH, 70, 0, arcade.color.BLACK)
    arcade.draw_lrtb_rectangle_filled(0, SCREEN_WIDTH, 150, 70, arcade.color.NAVAJO_WHITE)
    arcade.draw_lrtb_rectangle_filled(0, SCREEN_WIDTH, 240, 150, arcade.color.PINK)

def draw_bridge():
    arcade.draw_arc_outline(400, 0, 390, 360, arcade.color.BLACK, 0, 180, 13, 0, 360)
    arcade.draw_arc_outline(400, 0, 255, 246, arcade.color.BLACK, 0, 180, 6, 0, 600)

def draw_line(x, y):
    arcade.draw_line(400+x, 70, 400+x, 70+y, arcade.color.BLACK, 2)
    arcade.draw_line(400 - x, 70, 400 - x, 70 + y, arcade.color.BLACK, 2)

def main():
    arcade.open_window(SCREEN_WIDTH, SCREEN_HEIGHT, "拱桥")
    arcade.set_background_color(arcade.color.TOMATO)
    arcade.start_render()

    draw_grass()
    draw_bridge()
    draw_line(0, 110)
    draw_line(6, 109)
    draw_line(12, 106)
    draw_line(18, 106)
    draw_line(24, 105)
    draw_line(30, 105)
    draw_line(36, 105)
    draw_line(42, 105)
    draw_line(48, 104)
    draw_line(54, 104)
    draw_line(60, 102)
    draw_line(66, 100)
    draw_line(72, 98)
    draw_line(78, 96)
    draw_line(84, 94)
    draw_line(90, 92)
    draw_line(96, 90)
    draw_line(102, 86)
    draw_line(108, 83)
    draw_line(114, 78)
    draw_line(120, 74)
    draw_line(126, 70)
    draw_line(132, 65)
    draw_line(138, 60)
    draw_line(144, 55)
    draw_line(150, 48)
    draw_line(156, 40)
    draw_line(162, 32)
    draw_line(168, 24)

    arcade.finish_render()
    arcade.run()

main()


